//
//  ActivityVerCollectionViewCell.m
//  Frame
//
//  Created by 这是工作本 on 16/1/14.
//  Copyright © 2016年 这是工作本. All rights reserved.
//

#import "ActivityVerCollectionViewCell.h"

@implementation ActivityVerCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
    }
    return self;
}


- (void)createSubViews
{
    //预定
    UIImageView *view = [[UIImageView alloc] initWithFrame:CGRectMake(5 * ScreenWidth, 10 * ScreenHeigth, self.contentView.frame.size.width - 10 * ScreenWidth, 20 * ScreenHeigth)];
    view.image = [UIImage imageNamed:@"btn_yd@2x(1).png"];
    [self.contentView addSubview:view];
    //时间
    UILabel *la = [[UILabel alloc] initWithFrame:CGRectMake(0, view.frame.origin.y + view.frame.size.height + 5 * ScreenHeigth, self.contentView.frame.size.width, 20 * ScreenHeigth)];
    la.text = @"1月8号";
    la.font = [UIFont systemFontOfSize:13.0 * ScreenWidth];
    la.textAlignment = NSTextAlignmentCenter;
    la.textColor = [UIColor colorWithRed:30 / 255.0 green:30 / 255.0 blue:30 / 255.0 alpha:1.0];
    [self.contentView addSubview:la];
    //状态
    UILabel *state = [[UILabel alloc] initWithFrame:CGRectMake(0, la.frame.origin.y + la.frame.size.height, self.contentView.frame.size.width, 20 * ScreenHeigth)];
    state.text = @"热";
    state.font = [UIFont systemFontOfSize:13.0 * ScreenHeigth];
    state.textAlignment = NSTextAlignmentCenter;
    state.textColor = [UIColor colorWithRed:183 / 255.0 green:29 / 255.0 blue:29 / 255.0 alpha:1.0];
    [self.contentView addSubview:state];

    
}

@end
